import { createRouter, createWebHistory } from 'vue-router'
import transit from '../components/transit.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/transit'
    },
    {
      path: '/transit',
      name: 'transit',
      component: transit
    },
    {
      path: '/basicInfor',
      name: 'basicInfor',
      component: () => import('../views/basicInfor.vue')
    },
    {
      path: '/resource',
      name: 'resource',
      component: () => import('../views/resource.vue')
    },
    {
      path: '/living',
      name: 'living',
      component: () => import('../views/living.vue')
    }
  ]
})

export default router
